//
//  UPConstantAndVBScript.h
//  Uang Pasti
//
//  Created by 李永彬 on 2025/8/15.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

// 登录失效
FOUNDATION_EXPORT NSNotificationName const kLogOutOrExpiredNotificationKey;
// 跟进订单
FOUNDATION_EXPORT NSNotificationName const kFollowUpMyOrderKey;


typedef NSString *UPSceneType NS_STRING_ENUM;

FOUNDATION_EXPORT UPSceneType const UPSceneTypeSignIn;
FOUNDATION_EXPORT UPSceneType const UPSceneTypeIdCredential;
FOUNDATION_EXPORT UPSceneType const UPSceneTypeFaceCredential;
FOUNDATION_EXPORT UPSceneType const UPSceneTypePersonalCredential;
FOUNDATION_EXPORT UPSceneType const UPSceneTypeContactCredential;
FOUNDATION_EXPORT UPSceneType const UPSceneTypeBankCredential;
FOUNDATION_EXPORT UPSceneType const UPSceneTypeStartLoan;
FOUNDATION_EXPORT UPSceneType const UPSceneTypeEndLoan;

extern NSString * const latitudeKey;
extern NSString * const longitudeKey;

// 常量定义
extern const CGFloat mainTabBarHeight;

// 状态栏和安全区域
CGFloat statusBarHeight(void);
CGFloat topSafeArea(void);
CGFloat bottomsafeArea(void);

// UIWindow 安全区域扩展
@interface UIWindow (SafeArea)
+ (UIEdgeInsets)keyWindowsafeAreaInsets;
@end

// 实用工具函数
NSString *confusionString(void);

NSString *LocalizableForKey(NSString *key);
NSString *getIDFVForKey(void);
void upOpenAppSettings(void);

// 按钮标签枚举
typedef NS_ENUM(NSUInteger, LoanHistoryListType) {
    LoanHistoryListTypeAll = 4,
    LoanHistoryListTypeApplying = 7,
    LoanHistoryListTypeRepayment = 6,
    LoanHistoryListTypeFinish = 5
};

typedef NS_ENUM(NSUInteger, AuthImagePickerType) {
    AuthImagePickerTypeUnknow = 0,
    AuthImagePickerTypePRC,
    AuthImagePickerTypeFace
};

NS_ASSUME_NONNULL_END
